DXL attribute of custo requirement identifier

Hi!

I am a rookie in DXL and I am struggling writing a basic DXL script.. :-(. May you help me doing the following?

In my module, I have a "Object type" attribute that indicates if the object is a requirement or whatever, I want to create a DXL attribute that displays a custo identifier only if it is a requirement :

If the "Object type" attribute is a requirement then

"Requirement identifier" attribute is equal to 'prefix'_Absolute number

else

"Requirement identifier" attribute is empty

 

Thanks everyone


tom_SPU - Fri Feb 17 11:11:32 EST 2017

Re: DXL attribute of custo requirement identifier
Mathias Mamsch - Tue Feb 21 02:37:10 EST 2017

if (obj."Object Type" "" == "Requirement") 
    obj.attrDXLName = ((module obj)."Prefix") obj."Absolute Number" ""

You mean something like that?